<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<style>

#cdiTable th{
	width: 70px;
}
</style>

<input type="button" value="回搜尋頁" onclick="javascript:history.back()">
<div >


<table border="1" id="cdiTable" class="tablesorter"  style="width: 4000px;"> 	
	<thead>
	<tr>
	 <th>序號</th>	
     <th>客訴編號</th>
     <th>受理日期</th>
     <th>開單日期</th>
     <th>流程狀態</th>
     <th>客戶名稱</th>
     <th>業務/負責人員</th>
     <th>區域別</th>
     <th>生產地</th>
     <th>產品類別</th>
     <th>異常現象</th>
     <th>新品號</th>
     <th>舊品號</th>
     <th>是否再發</th>
     <th>客戶送樣承認</th>
     <th>首批交貨</th>
     <th>完成初步回覆日期</th>
     <th>完成最終回覆日期</th>
     <th>完成客戶確認日期</th>
     <th>客戶回覆內容</th>
     <th>客戶確認結果</th>
     <th>完成時間</th>
     <th>初步調查-初步調查與問題定義</th>
     <th>緊急處理&暫時對策</th>
     <th>客訴判定</th>
     <th>判定原則</th>
     <th>權責單位</th>
     <th>判定日</th>
     <th>真因分析</th>
     <th>永久對策</th>
     <th>標準化文件</th>
     <th>結案日</th>
     
     
     <!--  
     <th>對策回覆日期</th>
     <th>客訴判定</th>
     <th>權責單位</th>
     <th>判定日</th>
     <th>客訴類別</th>
     <th>結案日</th>
     <th>異常現象類別</th>
     <th>異常模穴</th>
     <th>異常部位</th>
     <th>發生地點</th>
     <th>如何發生異常</th>
     <th>製令編號</th>
     <th>異常頻度</th>
     <th>異常數/捲</th>
     <th>客戶庫存</th>
     <th>客戶品號</th>
     <th>端子類膠盒合配件</th>
     <th>端子類膠盒合配P.No.</th>
     <th>端子類端子對手件</th>
     <th>端子類端子對手P.No.</th>
     <th>端子類膠盒對手件</th>
     <th>端子類膠核對手P.No.</th>
     <th>膠盒類端子合配件</th>
     <th>膠盒類端子合配P.No.</th>
     <th>膠盒類端子對手件</th>
     <th>膠盒類端子對手P.No.</th>
     <th>膠盒類膠盒對手件</th>
     <th>膠盒類膠核對手P.No.</th>
     <th>夾片裝配鈑金孔孔徑</th>
     <th>夾片板厚</th>
     <th>橡膠類使用線種</th>
     <th>橡膠類線徑</th>
     <th>橡膠類膠盒</th>
     <th>橡膠類P.No.</th>
     <th>說明</th>
     <th>判定原則</th>
     <th>永久對策</th>
     <th>標準化文件</th>
     <th>結案日</th>
     <th>異常樣品提供</th>
     <th>樣品提供日</th>
     <th>客戶要求產品</th>
     <th>客戶要求文件</th>
     <th>客戶要求產品</th>
     <th>其他說明</th>
     <th>品保指派-完成指派日期</th>
     <th>品保指派-權責單位</th>
     <th>品保指派-承辦人員</th>
     <th>品保指派-接收單位</th>
     <th>品保指派-接收人員</th>
     <th>品保指派-備註</th>
     <th>更新時間</th>
     <th>更新者</th>
     <th>流程狀態</th>
     <th>品管指派-完成指派日期</th>
     <th>品管指派-權責單位</th>
     <th>品管指派-承辦人員</th>
     <th>品管指派-接收單位</th>
     <th>品管指派-接收人員</th>
     <th>品管指派-備註</th>
     <th>初步調查-初步調查與問題定義</th>
     <th>初步調查-權責單位</th>
     <th>初步調查-承辦人員</th>
	 <th>初步調查-接收單位</th>
	 <th>初步調查-接收人員</th>
     <th>初步調查-備註</th>
     <th>初步調查與問題定義</th>
     <th>初步調查-權責主管</th>
     <th>初步調查-簽核時間</th>
     <th>初步調查-簽核意見</th>
     <th>初步調查-簽核資訊</th>
     <th>完成初步調查日期</th>
     <th>初步回覆-權責單位</th>
	 <th>初步回覆-承辦人員</th>
 	 <th>初步回覆-接收單位</th>
	 <th>初步回覆-接收人員</th>
     <th>初步回覆-備註</th>
     <th>初步回覆-備權責主管</th>
     <th>初步回覆-完成初步調查日期</th>
     <th>初步回覆-簽核意見</th>
     <th>客訴判定-完成客訴判定日期</th>
     <th>客訴判定-權責單位</th>
     <th>客訴判定-承辦人員</th>
     <th>客訴判定-接收單位</th>
     <th>訴判定-接收人員</th>
     <th>客訴判定-備註</th>
     <th>客訴成立與否<</th>
     <th>判定原則</th>
     <th>客訴判定-權責單位2</th>
     <th>客訴判定-簽核主管 </th>
     <th>客訴判定-簽核時間</th>
     <th>客訴判定-簽核意見</th>
     <th>完成真因分析日期</th>
     <th>真因分析-權責單位</th>
     <th>真因分析-承辦人員</th>
     <th>真因分析-接收單位</th>
     <th>真因分析-接收人員</th>
     <th>真因分析-備註</th>
     <th>真因分析</th>
     <th>真因分析-簽核主管</th>
     <th>真因分析-簽核時間</th>
     <th>真因分析-簽核意見</th>
     <th>完成永久對策日期</th>
     <th>永久對策-權責單位</th>
     <th>永久對策-承辦人員</th>
     <th>永久對策-接收單位</th>
     <th>永久對策-接收人員</th>
     <th>永久對策-備註</th>
     <th>永久對策-簽核主管</th>
     <th>永久對策-簽核時間</th>
     <th>永久對策-簽核意見</th>
     <th>完成客戶確認日期</th>
     <th>客戶確認-權責單位</th>
     <th>客戶確認-承辦人員</th>
     <th>客戶確認-接收單位</th>
     <th>客戶確認-接收人員</th>
     <th>客戶確認-備註</th>
     <th>客戶回覆內容</th>
     <th>客戶確認結果</th>
     <th>處級審核-處級人員</th>
     <th>處級審核-簽核日期</th>
     <th>處級審核-簽核意見</th>
     <th>完成追蹤確認日期</th>
     <th>追蹤確認-權責單位</th>
     <th>追蹤確認-承辦人員</th>
     <th>追蹤確認-備註</th>
     <th>追蹤確認-簽核主管</th>
     <th>追蹤確認-簽核時間</th>
     <th>追蹤確認-簽核意見</th>
     <th>完成時間</th>
     -->
</tr>
</thead>
	
	<tbody>
	
	<c:forEach var="cdi" items="${cdiList}" varStatus="status">
	
	<tr>
	 <td>${status.index+1 }</td>
     <td>${cdi.CDIID}</td>
	 <td>${cdi.acceptDate}</td>
	 <td>${cdi.startDate}</td>
	 <td>
	 	<c:if test="${empty cdi.NOW_STEP}" >
	 		(無流程資料)
	 	</c:if>
	 	<c:if test="${cdi.stepIsClose}">(已結案)</c:if>
	 	<c:if test="${not cdi.stepIsClose}">
	 		${cdi.nowStep }
	 	</c:if>
	 </td>
	 <td>${customerNameMap[cdi.custID]}</td>
	 <td>${cdi.salesID}</td>
	 <td>${cdi.custArea}</td>
	 <td>${cdi.madeIn}</td>
	 <td>${productTypeMap[cdi.productType]}</td>
	 <td>${unusualTypeMap[cdi.unusualType]}</td>
	 <td>${cdi.newProduct}</td>
     <td>${cdi.oldProduct}</td>
	 <td>${cdi.isSendAgain}</td>
	 <td>${cdi.isCustSampleAdmit}</td>
	 <td>${cdi.isFirstDelivery}</td>
	 <td>${cdi.surveyDate5}</td>
	 <td>${cdi.finishForeverDate8}</td>
	 <td>${cdi.confirmDate9}</td>
	 <td>${cdi.reply9}</td>
	 <td>${cdi.result9}</td>	
	 <td>完成時間</td>
	 <td>${cdi.surveyDef4}</td>
	 <td><a href="<c:url value="/report06/findTodoList.do?cdiid=${cdi.CDIID}&statetype5=緊急處理" />">${cdi.todolist_em}</a></td>
	 <td>
	 	<c:if test="${cdi.isCDIEstablish6 =='Y'}">判定成立</c:if>
	 	<c:if test="${cdi.isCDIEstablish6 =='N'}">判定不成立</c:if>
	 	<c:if test="${ empty cdi.isCDIEstablish6}">未判定</c:if>
	 	<c:if test="${ cdi.isCDIEstablish6 == ' '}">未判定</c:if>
	 </td>
	 <td>${cdi.detetminePrinciple6}</td>
	 <td>${cdi.dutyUnit6_2}</td>
	 <td>${cdi.finishDetetmineDate6}</td>
	 <td>${cdi.reasonAnalyze7}</td>
	 <td><a href="<c:url value="/report06/findTodoList.do?cdiid=${cdi.CDIID}&statetype5=永久對策" />">${cdi.todolist_forever}</a></td>
     <td><a href="<c:url value="/report06/findTodoList.do?cdiid=${cdi.CDIID}&statetype5=標準化(文件)" />">${cdi.todolist_standardDoc}</a></td>
	 <td>${cdi.finishDate}</td>
	 
 

</tr>
	</c:forEach>
	</tbody>
</table>

</div>

<script>
$(function() {
	$("#cdiTable").tablesorter({
		widgets: ['zebra']
		}); 
})

</script>




<!--     
     <td>${cdi.SFDate}</td>
     <td>${cdi.determine}</td>
     <td>${cdi.dutyUnit1}</td>
     <td>${cdi.detetmineDate}</td>
     <td>${cdi.type}</td>
     <td>${cdi.closeDate}</td>
     <td>${cdi.unusualMainType}</td>
     <td>${cdi.unusualTouchPoint}</td>
     <td>${cdi.unusualPart}</td>
     <td>${cdi.whereHappen}</td>
     <td>${cdi.howHappen}</td>
     <td>${cdi.madeNo}</td>
     <td>${cdi.unusualRate}</td>
     <td>${cdi.unusualRoll}</td>
     <td>${cdi.custStock}</td>
     <td>${cdi.custProductID}</td>
     <td>${cdi.plugID1}</td>
     <td>${cdi.plugNO1}</td>
     <td>${cdi.plugID2}</td>
     <td>${cdi.plugNO2}</td>
     <td>${cdi.plugID3}</td>
     <td>${cdi.plugNO3}</td>
     <td>${cdi.plugID4}</td>
     <td>${cdi.plugNO4}</td>
     <td>${cdi.plugID5}</td>
     <td>${cdi.plugNO5}</td>
     <td>${cdi.plugID6}</td>
     <td>${cdi.plugNO6}</td>
     <td>${cdi.clipParam1}</td>
     <td>${cdi.clipParam2}</td>
     <td>${cdi.rubberParam1}</td>
     <td>${cdi.rubberParam2}</td>
     <td>${cdi.rubberParam3}</td>
     <td>${cdi.rubberNO}</td>
     <td>${cdi.CDINote}</td>
	 <td>${cdi.reply9}</td>
     <td>${cdi.result9}</td>
     <td>${cdi.finishDate}</td>
     <td>${cdi.isUnusualSampleOffer}</td>
     <td>${cdi.sampleOfferDate}</td>
     <td>${cdi.custRequireProduct}</td>
     <td>${cdi.custRequireDoc}</td>
     <td>${cdi.custRequireDate}</td>
     <td>${cdi.otherNote}</td>
     <td>${cdi.assignDate}</td>
     <td>${cdi.assignDate2}</td>
     <td>${cdi.dutyUnit2}</td>
     <td>${cdi.undertaker2}</td>
     <td>${cdi.acceptUnit2}</td>
     <td>${cdi.acceptUser2}</td>
     <td>${cdi.memo2}</td>
     <td>${cdi.updateTime}</td>
     <td>${cdi.updateUser}</td>
     <td>${cdi.flowFlag}</td>
     <td>${cdi.assignDate3}</td>
     <td>${cdi.dutyUnit3}</td>
     <td>${cdi.undertaker3}</td>
     <td>${cdi.acceptUnit3}</td>
     <td>${cdi.acceptUser3}</td>
     <td>${cdi.memo3}</td>
     <td>${cdi.surveyDate4}</td>
     <td>${cdi.dutyUnit4}</td>
     <td>${cdi.undertaker4}</td>
     <td>${cdi.acceptUnit4}</td>
     <td>${cdi.acceptUser4}</td>
     <td>${cdi.memo4}</td>
     <td>${cdi.surveyDef4}</td>
     <td>${cdi.dutyLeader4}</td>
     <td>${cdi.authorizeDate4}</td>
     <td>${cdi.authorizeOpinion4}</td>
     <td>${cdi.surveyInfo4}</td>
     <td>${cdi.surveyDate5}</td>
     <td>${cdi.dutyUnit5}</td>
     <td>${cdi.undertaker5}</td>
     <td>${cdi.acceptUnit5}</td>
     <td>${cdi.acceptUser5}</td>
     <td>${cdi.memo5}</td>
     <td>${cdi.dutyLeader5}</td>
     <td>${cdi.authorizeDate5}</td>
     <td>${cdi.authorizeOpinion5}</td>
     <td>${cdi.finishDetetmineDate6}</td>
     <td>${cdi.dutyUnit6}</td>
     <td>${cdi.undertaker6}</td>
     <td>${cdi.acceptUnit6}</td>
     <td>${cdi.acceptUser6}</td>
     <td>${cdi.memo6}</td>
     <td>${cdi.isCDIEstablish6}</td>
     <td>${cdi.detetminePrinciple6}</td>
     <td>${cdi.dutyUnit6_2}</td>
     <td>${cdi.authorizeLeader6}</td>
     <td>${cdi.authorizeDate6}</td>
     <td>${cdi.authorizeOpinion6}</td>
     <td>${cdi.finishAnalyzeDate7}</td>
     <td>${cdi.dutyUnit7}</td>
     <td>${cdi.undertaker7}</td>
     <td>${cdi.acceptUnit7}</td>
     <td>${cdi.acceptUser7}</td>
     <td>${cdi.memo7}</td>
     <td>${cdi.reasonAnalyze7}</td>
     <td>${cdi.authorizeLeader7}</td>
     <td>${cdi.authorizeDate7}</td>
     <td>${cdi.authorizeOpinion7}</td>
     <td>${cdi.finishForeverDate8}</td>
     <td>${cdi.dutyUnit8}</td>
     <td>${cdi.undertaker8}</td>
     <td>${cdi.acceptUnit8}</td>
     <td>${cdi.acceptUser8}</td>
     <td>${cdi.memo8}</td>
     <td>${cdi.authorizeLeader8}</td>
     <td>${cdi.authorizeDate8}</td>
     <td>${cdi.authorizeOpinion8}</td>
     <td>${cdi.confirmDate9}</td>
     <td>${cdi.dutyUnit9}</td>
     <td>${cdi.undertaker9}</td>
     <td>${cdi.acceptUnit9}</td>
     <td>${cdi.acceptUser9}</td>
     <td>${cdi.memo9}</td>
     <td>${cdi.reply9}</td>
     <td>${cdi.result9}</td>
     <td>${cdi.authorizeLeader10}</td>
     <td>${cdi.authorizeDate10}</td>
     <td>${cdi.authorizeOpinion10}</td>
     <td>${cdi.confirmDate11}</td>
     <td>${cdi.dutyUnit11}</td>
     <td>${cdi.undertaker11}</td>
     <td>${cdi.memo11}</td>
     <td>${cdi.authorizeLeader11}</td>
     <td>${cdi.authorizeDate11}</td>
     <td>${cdi.authorizeOpinion11}</td>
     <td>${cdi.finishDate}</td>
-->
